"""My_WEB URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.contrib.staticfiles.views import serve
from django.urls import path
from APP01 import views
from APP01.views import RegiterView, LoginView, Add_userinfoView
from django.conf.urls.static import static

from My_WEB import settings

import re

from My_WEB.settings import MEDIA_ROOT

urlpatterns = [
                  path('admin/', admin.site.urls),

                  path('index/', views.index),
                  path('user_info/', views.user_info),
                  path('Home/', views.Home, name='Home'),
                  path('Regiter/', RegiterView.as_view(), name='regiter'),
                  path('Login2/', LoginView.as_view(), name='login'),
                  path('delete/', views.delete),
                  path('edit/', views.edit),
                  path('User_center/', views.User_center),
                  path('Add_userinfo/', Add_userinfoView.as_view(), name='Add_userinfo'),
                  path('image/', views.image),
                  path('show/', views.show),
                  path('Admin_INFO/', views.Admin_INFO),
                  # path('list/',views.list, name='list'),
                  path('addcart/', views.addcart, name='addcart'),
                  path('quite/', views.quite, name='out'),
                  path('person/', views.person, name='person_info'),
                  # path('Changecart/(\\d+)/', views.changecart, name='changecart'),
                  path('user_cart/', views.user_cart, name='usercart'),
                  path('Changecarts/', views.Changecarts, name='Changecarts'),
                  path('subshoppings/', views.subshoppings, name='subshoppings'),
                  path('addshoppings/', views.addshoppings, name='addshoppings'),
                  path('allselect/', views.allselect, name='allselect'),
                  path('pay/', views.pay, name='pay'),
                  path('order/', views.order, name='order')
              ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL,
                                                                                         document_root=settings.STATIC_ROOT)
